/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package deatax;

/**
 *
 * @author Pieman
 */
public class PathInfo {

    private Tile tile;
    private PathInfo prev;
    private int cost;
    private boolean locked;

    public PathInfo(Tile tile, PathInfo prev, int cost) {
        this.tile = tile;
        this.prev = prev;
        this.cost = cost;
        locked = false;
    }

    public Tile getTile() {
        return tile;
    }

    public void setTile(Tile tile) {
        this.tile = tile;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public void setPrev(PathInfo prev) {
        this.prev = prev;
    }

    public PathInfo getPrev() {
        return prev;
    }

    public boolean isLocked() {
        return locked;
    }

    public void setLocked(boolean locked) {
        this.locked = locked;
    }
}